home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / Appearance SDK 1.0.4 / Appearance Sample Code / Source / Offscreen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-16  |  781 b   |  47 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        Offscreen.h
  3.  
  4.     Contains:    Class to help with offscreen drawing.
  5.  
  6.     Version:    Appearance 1.0 SDK
  7.  
  8.     Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Edward Voas
  13.  
  14.         Other Contact:        7 of 9, Borg Collective
  15.  
  16.         Technology:            OS Technologies Group
  17.  
  18.     Writers:
  19.  
  20.         (edv)    Ed Voas
  21.  
  22.     Change History (most recent first):
  23.  
  24.          <1>     9/11/97    edv        First checked in.
  25. */
  26.  
  27. #pragma once
  28.  
  29. #include <QDOffscreen.h>
  30.  
  31. class Offscreen
  32. {
  33.     public:
  34.             Offscreen();
  35.         virtual ~Offscreen();
  36.     
  37.         virtual void        StartDrawing( const Rect& bounds, Boolean copyDest = false );
  38.         virtual void        EndDrawing();
  39.         virtual void        EndDrawingAndBlend( const RGBColor& opColor );
  40.         
  41.     private:
  42.         GWorldPtr    fWorld;
  43.         CGrafPtr    fSavePort;
  44.         GDHandle    fSaveDevice;
  45.         Rect        fBounds;
  46. };
  47.